<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<div>
<table id = 'a123'>
    <tr>
    <th>ID</th>
    <th>期号</th>
    <th>开奖号码1</th>
    <th>开奖号码2</th>
    <th>开奖号码3</th>
    </tr>

</table>
</div>
<script type="text/javascript"  src="/static/js/jquery-3.2.1.js"></script>
<script>
function test() {
            console.log("请求准备发送");
            $.ajax({
                type : "POST",
                url : "/hn/find/",
                dataType : "json",
{#                data : {},#}
                success : function(data) {
{#                    alert('请求成功')#}
{#                    alert(data[1])#}
{#                    alert(data)#}
                    var obj = eval(data) {#  格式化请求的数据#}
                    console.log(data.length)
                    $.each(data,function (index,item) {
                        var id = obj[index].id
                        var lusse = obj[index].lusse
                        var code_0 = obj[index].code_0
                        var code_1 = obj[index].code_1
                        var code_2 = obj[index].code_2
                        console.log(id,lusse,code_0,code_1,code_2)
                        console.log('--------------')
                        var data_show = " <tr><td>"+id+"</td><td>"+lusse+"</td><td>"+code_0+"</td><td>"+code_1+"</td><td>"+code_2+"</td></td>"
{#                        console.log(data_show)#}
                        $("#a123").append(data_show)

                    })
                },
            });
        }

test()
</script>
</body>
</html>